Skip to content
This repository was archived by the owner on Jun 2, 2026. It is now read-only.

CLI: add --max-records (-m) for total list output cap#72

Merged
fopina merged 2 commits into
mainfrom
fix/cli-max-records-limit
May 4, 2026
Merged

CLI: add --max-records (-m) for total list output cap#72
fopina merged 2 commits into
mainfrom
fix/cli-max-records-limit

Conversation

@fopina-ci

Copy link
Copy Markdown
Collaborator

Summary

  • add a CLI-only --max-records option (short -m) for iterator-backed list commands
  • enforce a total emitted-record cap in CLI rendering
  • keep existing --limit behavior unchanged (API page-size/query parameter)

Why

--limit currently maps to API page size. This PR adds a distinct total-output cap so users can request exactly N records from CLI output.

Tests

  • unit: help includes --max-records / -m
  • unit: iterator output stops at max-records (even when --limit is also provided)
  • full unit CLI suite passes

Closes #71

@fopina fopina merged commit 24ab317 into main May 4, 2026
7 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI --limit sets page size instead of total record count for list methods

2 participants